Html tidy pack replaces `&lt` instead of `< `and `&gt` instead of `>` for html tag.

Posted by Harikrishna on Stack Overflow See other posts from Stack Overflow or by Harikrishna
Published on 2010-03-27T09:59:39Z Indexed on 2010/03/27 10:03 UTC
Read the original article Hit count: 330

Filed under:
|
|
|

I am tidying the html page by html tidy pack because there are some pages with missing ending tags So I can add the missing closing tags by html agility pack. But some times when I use the html tidy pack then that web page has changes like :

If original table is

 <table><tr><td>first row</td></table>

After using html tidy pack the table is : <table> is now &lt table &gt. But I want like <table>. In this particular example it works perfectly but in some html page it replace &lt instead of <and &gt instead of >.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET